<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="memberList.title"/></title>
    <meta name="heading" content="<fmt:message key='memberList.heading'/>"/>
    <meta name="menu" content="MemberMenu"/>
</head>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editMember"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="members" class="table" requestURI="" id="memberList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editMember" media="html"
        paramId="id" paramProperty="id" titleKey="member.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="member.id"/>
    <display:column property="username"           sortable="true" titleKey="member.username"/>
	<display:column property="firstName"          sortable="true" titleKey="member.firstName"/>
	<display:column property="lastName"           sortable="true" titleKey="member.lastName"/>
	<display:column property="email"              sortable="true" titleKey="member.email"/>
	<display:column property="phoneNumber"        sortable="true" titleKey="member.phoneNumber"/>
	<display:column property="website"            sortable="true" titleKey="member.website"/>
	<display:column property="address.address"    sortable="true" titleKey="member.address.address"/>
	<display:column property="address.city"       sortable="true" titleKey="member.address.city"/>
	<display:column property="address.province"   sortable="true" titleKey="member.address.province"/>
	<display:column property="address.country"    sortable="true" titleKey="member.address.country"/>
	<display:column property="address.postalCode" sortable="true" titleKey="member.address.postalCode"/>
	<display:column property="enabled"            sortable="true" titleKey="member.enabled"/>
	<display:column property="accountExpired"     sortable="true" titleKey="member.accountExpired"/>
	<display:column property="accountLocked"      sortable="true" titleKey="member.accountLocked"/>
	<display:column property="credentialsExpired" sortable="true" titleKey="member.credentialsExpired"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="memberList.member"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="memberList.members"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="memberList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="memberList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="memberList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editMember"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("memberList");
</script>